package com.example.owner.aop;



import com.example.owner.bean.LifecycleListener;
import io.micronaut.aop.Adapter;
import io.micronaut.core.annotation.Indexed;

import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Documented
@Retention(RUNTIME)
@Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD})
@Adapter(LifecycleListener.class)  //(1)
@Indexed(LifecycleListener.class)
@Inherited
public @interface Listener {
}
